import json

from config import BASE_DIR


def read_json(pata_filename):
    with open(BASE_DIR + pata_filename, encoding="utf-8") as f:
        json_data = json.load(f)
        new_data = []
        for i in json_data:
            new_data.append(tuple(i.values()))

    return new_data


if __name__ == '__main__':
    read_json1= './data/ihrm_login_api.json'
    print(read_json(read_json1))
